import 'package:binggo_bomb/page/cardsList.dart';
import 'package:flutter/material.dart';

class BodyTabWidget extends StatefulWidget {
  const BodyTabWidget({super.key});

  @override
  State<BodyTabWidget> createState() => _BodyTabWidgetState();
}

class _BodyTabWidgetState extends State<BodyTabWidget>
    // with SingleTickerProviderStateMixin
{

  late List<String> tabsName = ["红色", "蓝色", "黄色", "紫色"];
  late List<String> tabsColor = ["0", "1", "2", "3"];

  // late TabController tabController;

  @override
  void initState() {
    // tabController = TabController(length: tabsColor.length, vsync: this);
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: <Widget>[

        // TabBar(
        //   labelStyle: const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
        //   unselectedLabelStyle: const TextStyle(fontSize: 16),
        //   isScrollable: true,
        //   // controller: tabController,
        //   labelColor: Colors.blue,
        //   indicatorWeight: 3,
        //   indicatorPadding: const EdgeInsets.symmetric(horizontal: 10),
        //   unselectedLabelColor: Colors.grey,
        //   indicatorColor: Colors.orangeAccent,
        //   tabs: tabsName.map((e) => Tab(text: e,)).toList(),
        //   onTap: (v) {
        //     // getRadios(tabs[v]["code"].toString(), false);
        //     // _pageController.jumpToPage(v);
        //   },
        // ),

        // Expanded(
        //     child: TabBarView(
        //       physics: NeverScrollableScrollPhysics(),//viewPage禁止左右滑动
        //       controller: tabController,
        //       // children: [],
        //       children: tabsColor.map((e) => CardsListPage(colorId: int.parse(e), )).toList(),
        //     )
        // ),

      ],
    );
  }
}
